package com.dongdongshop.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dongdongshop.service.FreemakerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("freemaker")
public class FreemakerController {

    @Autowired
    private FreemakerService freemakerService;

    @RequestMapping("test")
    @ResponseBody
    public String test(Long goodsId){
        freemakerService.createPage(goodsId);
        return "OK";
    }
}
